package com.ruoyi.alarm.domain;

import com.ruoyi.common.annotation.Excel;
import javax.validation.constraints.NotNull;
import lombok.Data;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 告警推送对象 alarm_push
 * 
 * @author yepanpan
 * @date 2025-03-10
 */
@Data
public class AlarmPush extends BaseEntity
{
    public static final String TARGET_ALL = "all";
    public static final String TARGET_USER = "user";
    public static final String TARGET_DEPT = "dept";
    public static final String TARGET_POST = "post";
    public static final String TARGET_ROLE = "role";
    private static final long serialVersionUID = 1L;

    /** 自增长主键ID */
    private Long id;

    /** 告警类型 */
    @Excel(name = "告警类型")
    @NotNull
    private String alarmType;
    @Excel(name = "告警类型名称")
    private String alarmTypeName;

    /** 推送方式 */
    @Excel(name = "推送方式", dictType="alarm_push_type", comboReadDict=true)
    @NotNull
    private String pushType;

    /** 推送对象 */
    @Excel(name = "推送方式", dictType="alarm_push_target", comboReadDict=true)
    @NotNull
    private String pushTarget;

    /** 推送用户 */
    @Excel(name = "推送用户")
    @NotNull
    private String pushUser;

    /** 规则说明 */
    @Excel(name = "规则说明")
    @NotNull
    private String comment;

}
